package com.shop.seckill.feign;

import com.base.common.http.HttpResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("shop-pay")
public interface ApiWeixinPayFeign {

    @RequestMapping("/pay/closePay")
    HttpResult closePay(@RequestParam("outtradeno") String outtradeno);

    @RequestMapping("/pay/queryStatus")
    HttpResult queryStatus(@RequestParam("outtradeno") String outtradeno);

    @RequestMapping("/pay/createCode")
    HttpResult createCode(@RequestParam("outtradeno") String outtradeno, @RequestParam("money") String money);
}
